package com.yao.smy.repository;

import com.yao.smy.domain.Visitor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface VisitorRepository extends JpaRepository<Visitor, String> {
    // 根据身份证查询
    Visitor findByIdCard(String idCard);
}
